ExamPlay Light Logo
Log Masuk

Computer Science for IGCSE & O level - Programming (Section 12 - No. 11)

What is the outcome of the given code using count-controlled loop: ``` For number to 10 to 50 Step 5 Console.WriteLine(number) Next number ```
Prints numbers from 10 to 50 increasing by 5.
Prints a single number only.
The loop will not execute, as the end value is greater than start value.
It will print the value 50 only.

Penjelasan

The loop will iterate from 10 to 50, incrementing by 5 each time, printing the current value of the number.

Komen (0)

Log Masuk Untuk Mengulas
Iklan
BrainBehindX Inc Logo
©2026; Dikuasakan Oleh BrainBehindX Inc